"""
访问频率限制
"""
import time
import requests


url = 'http://www.porters.vip/features/rate.html'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) '
                  'Chrome/92.0.4515.159 Safari/537.36 '
}
for _ in range(1, 11):
    res = requests.get(url, headers=headers)
    # time.sleep(1)
    print(res.status_code)